layui.use('form', function(){
	var form = layui.form;
	
	form.on('select(level)', function(data){
		var level = data.value;
		
		$("#parentInfoDiv").toggle();
		$("#urlDiv").toggle();
		
	});
	
	$('#back').on('click', function () {
		var index = parent.layer.getFrameIndex(window.name);  
	    parent.layer.close(index);
	});
	
	$('#save').on('click', function () {
		
	});
	
});
